<#include "/${parameters.templateDir}/simple/text.ftl" />
<a href="#" id="${parameters.id}_button"><img src="${base}/struts/geni/calendar/icon-appt.gif" style="cursor: pointer;"></a>
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "${parameters.id}",
<#if parameters.showsTime?exists && parameters.showsTime == "true">
        showsTime      :    true,
<#else>
        showsTime      :    false,
</#if>
<#if parameters.dateFormat?exists>
        ifFormat       :    "${parameters.dateFormat}",
<#else>
	<#if parameters.showsTime?exists && parameters.showsTime == "true">
		ifFormat       :    "%Y-%m-%d %H:%M",
	<#else>
		ifFormat       :    "%Y-%m-%d",
	</#if>
</#if>
        button         :    "${parameters.id}_button",
        align          :    "Br",
        singleClick    :    true
    });
</script>
